# #Mudar para eth0 mudar grub.cfg /etc/default #GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 ipv6.disable=1" # Desativando o IPv6 no Ubuntu, Linux Mint e derivados Steps to disable IPv6 in GRUB Open the GRUB configuration file using a text editor, such as sudo nano /etc/default/grub Find the line GRUB_CMDLINE_LINUX_DEFAULT="" or GRUB_CMDLINE_LINUX="" Edit the line add to GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1" or new GRUB_CMDLINE_LINUX="ipv6.disable=1" Save and close the file Execute update-grub Para ativar ou desabilitar o IPv6 você deve editar o arquivo a seguir, execute os comandos no terminal: sudo gedit /etc/sysctl.conf Adicione estas linhas, observe que estamos usando o 1. que quer dizer que estamos desabilitando o IPv6, para ativar use o 0: # Desabilitando IPv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Por último, salve e feche o arquivo, para que as alterações entre em vigor execute o comando abaixo: sudo sysctl -p Verificando se o IPv6 esta ativado ou desativado no Ubuntu E por fim, vamos executar aquele mesmo comando que vimos inicialmente, vamos checar se o IPv6 esta mesmo desativado: cat /proc/sys/net/ipv6/conf/all/disable_ipv6